<?php

class Homepage_Controller
{
	
	public $template = 'homepage';
	
	
	public function main(array $getVars)
	{
		$homepageModel = new Homepage_Model;
		
		//get an article
		$article = $homepageModel->get_article();
		
		//create a new view and pass it our template
		$view = new View_Model($this->template);
		
		//assign article data to view
		$view->assign('article' , $article);
	}
}